package com.heatup.apt.model;

import com.baomidou.mybatisplus.annotations.IdType;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * 短信发送记录
 *
 */
@TableName("sms_log")
public class SmsLog implements Serializable {

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /** 用户id */
    @TableField(value = "user_id")
    private Integer userId;

    /** 手机号 */
    private String mobile;

    /** 校验码 */
    @TableField(value = "checkcode")
    private String checkCode;

    /** 门店名称 */
    @TableField(value = "store_name")
    private String storeName;

    /** 企业名称 */
    @TableField(value = "company_name")
    private String companyName;

    /** 课程 ID */
    @TableField(value = "course_id")
    private Integer courseId;

    /** 发送时间 */
    @TableField(value = "send_time")
    private Date sendTime;

    /** 发送结果(1成功  2失败) */
    @TableField(value = "send_result")
    private Integer sendResult;

    /** 1:发给用户的短信验证码。2: 门禁告警通知。3: 企业余额不足通知 4: 教练开课90分钟上课通知 */
    @TableField(value = "send_type")
    private Integer sendType;

    /** 用户表 昵称 */
    @TableField(exist = false)
    private String nickName;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getCheckCode() {
        return checkCode;
    }

    public void setCheckCode(String checkCode) {
        this.checkCode = checkCode;
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public Integer getCourseId() {
        return courseId;
    }

    public void setCourseId(Integer courseId) {
        this.courseId = courseId;
    }

    public Date getSendTime() {
        return sendTime;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }

    public Integer getSendResult() {
        return sendResult;
    }

    public void setSendResult(Integer sendResult) {
        this.sendResult = sendResult;
    }

    public Integer getSendType() {
        return sendType;
    }

    public void setSendType(Integer sendType) {
        this.sendType = sendType;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("SmsLog{");
        sb.append("id=").append(id);
        sb.append(", userId=").append(userId);
        sb.append(", mobile='").append(mobile).append('\'');
        sb.append(", checkCode='").append(checkCode).append('\'');
        sb.append(", storeName='").append(storeName).append('\'');
        sb.append(", companyName='").append(companyName).append('\'');
        sb.append(", courseId='").append(courseId).append('\'');
        sb.append(", sendTime=").append(sendTime);
        sb.append(", sendResult=").append(sendResult);
        sb.append(", sendType=").append(sendType);
        sb.append('}');
        return sb.toString();
    }
}